home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / tutorials / custEducation / opengl1 / lib / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  1.7 KB  |  94 lines

  1. #! smake
  2. #
  3. # Copyright 1993, Silicon Graphics, Inc.
  4. #  All Rights Reserved.
  5. #
  6. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  7. # the contents of this file may not be disclosed to third parties, copied or
  8. # duplicated in any form, in whole or in part, without the prior written
  9. # permission of Silicon Graphics, Inc.
  10. #
  11. # RESTRICTED RIGHTS LEGEND:
  12. # Use, duplication or disclosure by the Government is subject to restrictions
  13. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  14. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  15. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  16. # rights reserved under the Copyright Laws of the United States.
  17. #
  18.  
  19. #
  20. #   Makefile for compiling aux library
  21. #
  22. include /usr/include/make/commondefs
  23.  
  24. TARGETS = libaux.a
  25.  
  26. OPENGL1 ?= ../
  27. HEADERDIR = ${OPENGL1}/include
  28.  
  29. BASICFILES = \
  30.     shapes.c \
  31.     font.c \
  32.     teapot.c \
  33.     vect3d.c \
  34.     xform.c \
  35.     ${NULL}
  36.  
  37. CFILES = \
  38.     error.c \
  39.     init.c \
  40.     window.c \
  41.     event.c \
  42.     quit.c \
  43.     toolkit.c \
  44.     mouse.c \
  45.     key.c \
  46.     text.c \
  47.     auxtk.c \
  48.     image.c \
  49.     ${BASICFILES} \
  50.     ${NULL}
  51.  
  52. LCINCS = -I${HEADERDIR}
  53. LCOPTS = -c
  54.  
  55. ARFLAGS = r
  56.  
  57.  
  58. #
  59. #   To build a debug version of libaux.a, set AUX_DEBUG to DEBUG in your
  60. #     environment
  61. AUX_DEBUG ?= NO_DEBUG
  62.  
  63. #if ${AUX_DEBUG} == "DEBUG" || ${AUX_DEBUG} == "DEBUG2" || \
  64.     ${AUX_DEBUG} == "DEBUG3"
  65. CFILES    += debug.c
  66. OPTIMIZER =
  67. LCOPTS     += -g -D${AUX_DEBUG}
  68. #endif
  69.  
  70. .SUFFIXES:
  71. .SUFFIXES: .c .o
  72.  
  73. .c.o :
  74.     ${CC} ${CFLAGS} $<
  75.  
  76. #
  77. #   Start Dependencies
  78. #
  79.  
  80. default all install:    ${TARGETS}
  81.  
  82. include ${COMMONRULES}
  83.  
  84. info:    $(_FORCE}
  85.     @ echo 'NOTE : Debug Level is ' ${AUX_DEBUG}
  86.  
  87. new:     clobber
  88.     @ make -f Makefile 
  89.  
  90. ${TARGETS}:    info ${OBJECTS}
  91.     ${AR} ${ARFLAGS} $@ ${OBJECTS}
  92.  
  93.